package  
{
	import net.flashpunk.Entity;
	import net.flashpunk.World;
	import net.flashpunk.FP;
	import net.flashpunk.utils.Input;
	import net.flashpunk.utils.Key;
	import net.flashpunk.graphics.Image;
	import flash.net.SharedObject;
	/**
	 * © 2012 TheJavaArcade.com
	 */	
	public class TitleWorld extends World {
		
		public function TitleWorld() {
			var titleSprite:Image = new Image(Assets.TITLE_SPRITE);
			add(new SoundToggle);
			add(new Entity(120, 100, titleSprite));
			FP.screen.color = 0X313053;
		}
		
		override public function update():void {
			super.update();
			if (Input.pressed(Key.SPACE)) {
				FP.world = new GameWorld;
			}
		}
	}

}